from meiduo_admin.mypakge import *
from meiduo_admin.serializers.admin_serializers import *
from users.models import User
from meiduo_admin.serializers.group_serilziers import *


class ADMIN___AdminModelViewSet(ModelViewSet):
    queryset = User.objects.filter(is_staff=True)
    serializer_class = ADMIN___AdminModelSerializer
    pagination_class = MyPage


class ADMIN___AdminSimpleView(ListAPIView):
    queryset = Group.objects.all()
    serializer_class = GROUP___GroupModelSerializer


